package com.playcrab.adouban;

import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class ShowInfo extends BaseActivity {

	private static final String LOG_TAG = "ShowInfo";

	private static final int MENU_EXIT = Menu.FIRST + 12;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		  
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE); 
		//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);

		setContentView(R.layout.show_info); 
		
		Bundle bundle = this.getIntent().getExtras();
		String info = bundle.getString("info"); 
		//Toast.makeText(getApplicationContext(), info, Toast.LENGTH_SHORT)
		//		.show();
		TextView t=  (TextView)findViewById(R.id.show_info_info);
		t.setText(info); 
		
		Button b = (Button)findViewById(R.id.show_info_ok);
		b.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) { 
				ShowInfo.this.finish();
			}
			
		});

	}
}
